package cn.okcmd.ans;

import lombok.SneakyThrows;

/**
 * create by caoqg on 2021/7/26
 * 功能说明:
 */
public class UncheckedError {


    public static void main(String[] args) {
        new UncheckedError().hasErr();
    }

    /**
     *
     */
//    @SneakyThrows
//    @SuppressWarnings(value = {"unchecked"})
    @SuppressWarnings(value = {"all"})
    public void hasErr() {
        if(1==1){
            throw new Error("这是一个异常");
        }
    }

    @SuppressWarnings(value = {"all"})
    public void hasThral(){
        throw new Error("124");

    }
}
